package stock;

import stock.chart.DataLabelDecorator;
import stock.entity.Money;
import stock.entity.PriceQuote;
import stock.entity.TradingStatus;
import stock.observers.Imp.LogObserver;
import stock.subjects.Imp.StockData;

import java.math.BigDecimal;
import java.time.Instant;

public class Main {

    public static void main(String[] args) {

        StockData stockData = new StockData();
        LogObserver logObserver = new LogObserver(stockData);
        DataLabelDecorator dataLabelDecorator = new DataLabelDecorator(stockData.getChart());
        PriceQuote priceQuote = new PriceQuote(new Money(10), new Money(20), new Money(30), new Money(40), new Money(50), 60, Instant.now());
        stockData.setData("AAPL", "Apple_Inc", 5, TradingStatus.AUCTION, priceQuote, Instant.now(), BigDecimal.valueOf(1000), "Refinitiv", dataLabelDecorator);

    }
}